<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>事件的触发</title>
		<script>
			function doF(){
				alert("窗口加载完成");
			}
			function showDiv(){
				console.log("鼠标在这个div上晃动");
			}
			function zhuce(){
				alert("你双击了这个按钮");
			}
			// onchange
			function txtInput(){//无法触发
				console.log("文本框输入了");
			}
		</script>
	</head>
	<body onload="doF()">
		<input type="text" name="sss" onchange="txtInput()"/>
		<button ondblclick="zhuce()">注册</button>
		<div onmousemove="showDiv()" style="height: 400px;background-color: blueviolet;">
			3sss
		</div>
	</body>
</html>